package com.ftg.learn.psi.service;

import com.ftg.learn.psi.Dto.SalesParam;
import com.ftg.learn.psi.entity.SalesOrder;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 销售订单表 服务类
 * </p>
 *
 * @author guoBingTong
 * @since 2022-05-18
 */
public interface ISalesOrderService extends IService<SalesOrder> {


    /**
     * 添加销售订单表,同时添加销售订单明细表并削减商品的库存。
     * @param salesParam
     * @return
     */
    boolean insertSalesOrder(SalesParam salesParam);

    boolean suoHaHa(SalesParam salesParam);

}
